package com.wing.bill.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.bill.entity.PurchaseBill;
import com.wing.product.model.entity.ProductItem;
import com.wing.product.model.request.ProductItemForm;
import com.wing.product.model.response.ProductItemVO;
import com.wing.res.model.request.TestItemData;

import java.util.List;
import java.util.Map;

/**
 * 采购账单
 *
 * @author xiayang
 */
public interface PurchaseBillService extends IService<PurchaseBill> {

    /**
     * 添加
     *
     * @param purchaseBill
     * @return
     */
    void add(PurchaseBill purchaseBill);

    /**
     * 账单列表
     *
     * @param params
     * @return
     */
    List<PurchaseBill> list(Map<String, Object> params);

    /**
     * 账单分页列表
     *
     * @param page
     * @param params
     * @return
     */
    Page<PurchaseBill> pageList(Page page, Map<String, Object> params);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    PurchaseBill get(Long id);

}
